package com.lsm.sm.entity;



/**
 * Userbackground entity. @author MyEclipse Persistence Tools
 */

public class UserBackground extends Model{

	private static final long serialVersionUID = -2902141239113031154L;
	// Fields
     private Integer user;
     private String jobCategory;
     private Short graduated;
     private Short eduBackground;
     private Short marriage;
     private String idnum;


    // Constructors

    /** default constructor */
    public UserBackground() {}

   
    // Property accessors
    public Integer getUser() {
        return this.user;
    }
    
    public void setUser(Integer user) {
        this.user = user;
    }

    public String getJobCategory() {
        return this.jobCategory;
    }
    
    public void setJobCategory(String jobCategory) {
        this.jobCategory = jobCategory;
    }

    public Short getGraduated() {
        return this.graduated;
    }
    
    public void setGraduated(Short graduated) {
        this.graduated = graduated;
    }

    public Short getEduBackground() {
        return this.eduBackground;
    }
    
    public void setEduBackground(Short eduBackground) {
        this.eduBackground = eduBackground;
    }

    public Short getMarriage() {
        return this.marriage;
    }
    
    public void setMarriage(Short marriage) {
        this.marriage = marriage;
    }

    public String getIdnum() {
        return this.idnum;
    }
    
    public void setIdnum(String idnum) {
        this.idnum = idnum;
    }


	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		UserBackground other = (UserBackground) obj;
		return id == other.id;
	}
    
}